package com.autumn.aitraffic.service.impl;

import com.autumn.aitraffic.api.Result;
import com.autumn.aitraffic.domain.po.SpecialVehicles;
import com.autumn.aitraffic.mapper.SpecialVehiclesMapper;
import com.autumn.aitraffic.service.ISpecialVehiclesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wzx
 * @since 2025-03-01
 */
@Service
public class SpecialVehiclesServiceImpl extends ServiceImpl<SpecialVehiclesMapper, SpecialVehicles> implements ISpecialVehiclesService {

    @Override
    public Result getSpecialVehicles(int typeCar, int typeVio, String startDate, String endDate) {
//        // 定义日期格式（与前端传来的格式一致）
//        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
//        // 将字符串转换为LocalDateTime
//        startDate+=" 00:00:00";
//        LocalDateTime startTime = LocalDateTime.parse(startDate, formatter);
//        endDate+=" 23:59:59";
//        LocalDateTime endTime = LocalDateTime.parse(endDate, formatter);
//        this.lambdaQuery().eq(SpecialVehicles::getKind,typeCar)
//                .eq(SpecialVehicles::get)
//todo
        return null;
    }
}
